//
//  RoomModel.h
//  SmartiOSPublisher
//
//  Created by Liu,Qingcan on 2017/4/25.
//  Copyright © 2017年 Baidu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PersistenceCommon.h"
#import "Room+CoreDataClass.h"
#import "LERoomItem.h"

@interface RoomModel : NSObject

@property (nonatomic,weak)PersistenceCommon *persistence;


- (void)insertRoomData:(LERoomItem *)item;
- (NSArray *)selectNumberOfData:(NSInteger)number cateId:(NSInteger)cateId;

- (NSArray *)selectRoomsByCeteId:(NSInteger)cateId;


- (LERoomItem *)selectRoomsByRoomId:(NSInteger)roomId;

- (void)deleteRoom:(Room *)item;
- (void)updateRoom:(Room *)item;
- (void)deleteAllRoom;

@end
